import Vue from "vue";
import VueRouter from "vue-router";
import Select from "../views/select"
import shpCar from "../views/shpCar"
import Total from "../views/total"
import Wode from "../views/wode"

Vue.use(VueRouter) //注册路由插件

const routes = [  //配置表
    {
        path: '/',
        component: Wode,
        meta: {
            til: "我的"
        }
    },
    {
        path: '/select',
        component: Select,
        meta: {
            til: "商品选择"
        }
    },
    {
        path: '/shpcar',
        component: shpCar,
        meta: {
            ril: "购物车"
        }
    },
    {
        path: 'total',
        component: Total,
        meta: {
            til: "小票总计"
        }
    }
]

const router = new VueRouter({
    routes
})
export default router
